package com.mall.seckil.feign;

import com.mall.common.utils.Result;
import com.mall.seckil.dto.SeckillSessionDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author: 谢君臣
 * @Date: 2022/9/18-16:17
 * @version: 1.0
 * @function:
 */
@FeignClient("couponServer")
public interface CouponFeignClient {
    @GetMapping("/coupon/seckillsession/getLatest3DaySession")
    @ApiOperation("查询三天内的秒杀活动")
    Result<List<SeckillSessionDTO>> getLatest3DaySession();
}
